{extend name="public/base"/}
{block name="style"}
{/block}
{block name="content"}
    <div class="data-list" data-url="{:url('index')}">
        <form class="layui-form inline-form">
            <div class="pull-left">
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-normal layui-btn-sm ajax-form" data-url="{:url('add')}"><i class="layui-icon layui-icon-add-circle"></i> 新增</button>
                </div>
            </div>
        </form>
        <div class="data">
            <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
        </div>
    </div>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['util'], function()
    {
        // 返回顶部
        layui.util.fixbar({
            top:true
            , css: { right: 15, bottom: 35 }
            , bgcolor: '#2a96ff !important;display:block;'
            , showHeight:100
            , click: function (type) {
                if (type === 'top') {
                    $('.layui-body').animate({
                        scrollTop: 0
                    }, 200);
                }
            }
        });
    });
</script>
{/block}